<?php
if (!defined('_USE_MAGIC_QUOTES_GPC_CANCELER')){
	define('_USE_MAGIC_QUOTES_GPC_CANCELER', 1);
}
function xanhte_main($action, $fallback_action=""){
	
	require_once XOOPS_ROOT_PATH."/header.php";
	
	$root =& XCube_Root::getSingleton();
	unset($root->mContext->mBlock); // block procesure end.
	
	require_once XOOPS_TRUST_PATH."/xanhte/app/Xanhte_Controller.php";
	Xanhte_Controller::main('Xanhte_Controller', $action, $fallback_action);
	
	require_once XOOPS_ROOT_PATH."/footer.php";
}


function xanhte_module_icon()
{
	require_once XOOPS_TRUST_PATH."/xanhte/app/Xanhte_Controller.php";
	Xanhte_Controller::main('Xanhte_Controller', 'moduleicon');
	exit();
}